package com.threeti.mecool.mobile.interfaces;

import java.io.Serializable;

public class PageResponseDto implements Serializable {
  private long totalElement;
  private boolean hasNext;
    private int page;
    
  public PageResponseDto(long totalElement, boolean hasNext) {
    super();
    this.totalElement = totalElement;
    this.hasNext = hasNext;
  }
  
  public PageResponseDto(long totalElement, boolean hasNext, int page) {
    super();
    this.totalElement = totalElement;
    this.hasNext = hasNext;
    this.page = page;
  }
  
  public static PageResponseDto toPage(long totalElement, boolean hasNext, int page) {
    return new PageResponseDto(totalElement, hasNext, page);
  }
  
  public long getTotalElement() {
    return totalElement;
  }
  public void setTotalElement(long totalElement) {
    this.totalElement = totalElement;
  }

  public boolean isHasNext() {
    return hasNext;
  }

  public void setHasNext(boolean hasNext) {
    this.hasNext = hasNext;
  }

	public int getPage() {
		return page;
	}
  
  
}
